

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>用户管理</title>
<script type="text/javascript" src="JS/jquery-1.8.3.js"></script>
<script src="CSS/bootstrap.min.js"></script>
<link rel="stylesheet" href="CSS/bootstrap.css">
<style type="text/css">
td {
	text-align: center;
	vertical-align: middle;
}

#forbide {
	color: red;
}
</style>
</head>
<body>
	<table class="table">
		<tr>
			<td>编号</td>
			<td>用户头像</td>
			<td>用户名</td>
			<td>密码</td>
			<td>用户状态</td>
			<td>用户权限</td>
			<td>操作</td>
		</tr>

		<c:forEach items="${userList}" var="u" varStatus="s">
			<tr>
				<td>${u.uId}</td>
				<td><img style="width: 10%" src="img/${u.picName}" alt="暂无图片"></td>
				<td>${u.uName}</td>
				<td>${u.uPass}</td>
				<td ><c:if test="${u.uState == 1}">
                   <div>可用</div> 
                </c:if> <c:if test="${u.uState == 0}">
                    <div id="forbide" >禁言</div>
                </c:if></td>
				<td><c:if test="${u.flag == 1}">
                    管理员
                </c:if> <c:if test="${u.flag == 0}">
                   用户
                </c:if></td>
				<td><a href="ManageUserServlet?uId=${u.uId}&value=0">禁言</a> <a
					href="ManageUserServlet?uId=${u.uId}&value=1">解禁</a></td>
			</tr>
		</c:forEach>
		<tr>
			<td colspan="6">${requestScope.result}</td>
		</tr>

	</table>

</body>
</html>
